package com.yuebao.exception;

import com.yuebao.enumeration.ResponseCodeEnum;
import lombok.Data;

@Data
public class CustomerException extends Exception{

    private int code;
    private String msg;
    private String errorDetail;

    public CustomerException(int code, String msg, String errorDetail) {
        this.code = code;
        this.msg = msg;
        this.errorDetail = errorDetail;
    }
    
    public CustomerException(String msg){
        this.code= ResponseCodeEnum.INTERNAL_SERVER_ERROR.getCode();
        this.msg=msg;
    }
}
